import request from "@/utils/request"

// 获取路由
export const getRouters = () => {
  return request({
    url: "/system/menu/getRouters",
    method: "get",
  })
}

// 纪录用户访问菜单
export const recordVisits = (data) => {
  return request({
    url: "/system/menuVisit/add",
    method: "post",
    data,
  })
}

//查询操作手册地址
export function findByPath(path) {
  return request({
    url: "system/menu/findByPath?path=" + path + "&reqBizLine=BAC",
    method: "get",
  })
}
